import request from "../../http";

const cityApi = {
  async getAllCity() {
    return request({
      url: "/api/city",
      method: "get"
    });
  },
  async getAllData(query) {
    return request({
      url: "/api/area",
      method: "get",
      params: query
    });
  }
};

export default cityApi;
